#!/bin/bash
# echo "hello World"

# myname="shangguan"
# echo $myname
# #括号加或者不加都是可以的，加上是为了边界识别
# echo ${myname}

# readonly myname

# myname="huangj"
# echo myname
# unset myname
# echo myname


#测试
# your_name="huangj"
# greeting="hello ,${your_name}!"
# echo $greeting
# echo ${#greeting}

#字符分割
string="helloworld!"
echo ${string:1:4}

#查找字符串<数据不对>
# echo `expr index "$string" is`

#数组：

array_name=(
	111
	222
	333jdssjhasdkasd
	444
	)
echo ${array_name[@]}
echo ${array_name[2]}
echo ${#array_name[@]}

